package com.example.developdemo.service.impl;

import com.example.developdemo.entity.Category;
import com.example.developdemo.mapper.CategoryMapper;
import com.example.developdemo.service.CategoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getCategoryList() {
        return categoryMapper.getCategoryList();
    }
}
